// 主题
export type ITheme = 'light' | 'dark';
// 请求数据接口 返回
export interface Res<T = any> {
  code: number;
  msg?: string;
  data: T;
  list?: any;
  songs?: any;
}
// 分类
export interface ICategory {
  id?: string;
  category_id?: number;
  name?: string;
  [props: string]: any;
}
// 音乐
export interface IMusic {
  id: number;
  limit?: number;
  offset?: number;
  level?: string;
  [props: string]: any;
}
// 博文
export interface IBlog {
  id: number | string;
  category_id?: number;
  top?: number;
  read?: number;
  title?: string;
  category_name?: string;
  isub_titled?: string;
  content?: string;
  create_time?: number | string;
  update_time?: number | string;
  [props: string]: any;
}
// 分页
export interface IPagination {
  page: number;
  pageSize: number;
  [props: string]: any;
}
// 评论 || 留言
export interface ICommentInfo {
  count: number;
  list: IComment;
}
export interface IComment {
  id: number;
  pid?: number;
  blog_id?: number;
  user_id?: number;
  create_time?: number;
  user_name?: string;
  email?: string;
  content?: string;
  answer?: string;
  url?: string;
  [props: string]: any;
}
// 用户
export interface IUser {
  id?: number;
  username?: string;
  password?: string;
  username_text?: string;
  rember?: boolean;
  email?: string;
  token?: string;
}
//  ip
export interface IIp {
  ip: string;
  ip_address: IIpAddress;
  lon?: string;
  lat?: string;
}
export interface IIpAddress {
  city?: string;
  country?: string;
  isp?: string;
  province?: boolean;
}
// 地图坐标点
export interface IMark {
  lon?: string;
  lat?: string;
  ip_address?: IIpAddress;
}
